﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HelloEnCor.Interface;
using EnCor;
using EnCor.Security;

namespace HelloEnCor.BLL
{
    public class HelloService : BizService, IHelloService
    {
        IHelloComponent _Component;
        public HelloService( IHelloComponent component)
        {
            _Component = component;
        }
        #region IHelloService Members

        public string SayHello()
        {
            return string.Format("Hi, <b>{0}</b>: {1} ;; Invoke completed at {2}.", 
                SecurityContext.Current.Identity.Name, 
                _Component.SayHelloInComponent(),  DateTime.Now);
        }

        #endregion
    }
}
